<template>
  <div class="chat">
    <ChatDetail :supplyId="supplyId" :fromGoods="false" :channelId="channelId" :receiver="detail"></ChatDetail>
  </div>
</template>
<script>
import Api from "@/api";
import { Domain } from "@/constants";
import ChatDetail from "@/components/chat/ChatDetail"
export default {
  name: 'Chat',
  components:{
    ChatDetail
  },
  data() {
    return {
      supplyId:"",
      channelId:"",
      detail:{}
    };
  },
   created() {
    this.detail = JSON.parse(this.$route.query.detail)
    this.supplyId =this.detail.supplyId;
    this.channelId = this.detail.id;
  },
  mounted(){
  },
  methods:{
    
  }
};
</script>
<style scoped lang="scss">

</style>
